import request from '@/utils/request'
export default {
    addCustomer(data:object) {
        return request({
            url: '/customer/add',
            method: 'post',
            data: data
        })
    },
    editCustomer(id :string,data:object,) {
        return request({
            url: '/customer/'+id,
            method: 'patch',
            data: data
        })
    },
     deleteCustomer(id :string) {
        return request({
            url: '/customer/'+id,
            method: 'delete',
        })
    }
}

